package com.ruoyi.his.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 科室信息对象 department
 * 
 * @author hzr
 * @date 2025-05-21
 */

public class Department extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 科室ID */
    private Long id;

    // 关联的医生列表（仅用于传输，不对应数据库字段）
    private List<Long> doctorIds; // 存储选中的医生ID列表
    /** 科室名称 */
    @Excel(name = "科室名称")
    private String deptName;

    /** 父科室ID */
    @Excel(name = "父科室ID")
    private Long parentId;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long deptSort;

    /** 负责人 */
    @Excel(name = "负责人")
    private String leader;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 医生信息信息 */
    private List<Doctor> doctorList;
    // 添加doctorIds的getter和setter方法
    public List<Long> getDoctorIds() {
        return doctorIds;
    }

    public void setDoctorIds(List<Long> doctorIds) {
        this.doctorIds = doctorIds;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeptName(String deptName) 
    {
        this.deptName = deptName;
    }

    public String getDeptName() 
    {
        return deptName;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setDeptSort(Long deptSort) 
    {
        this.deptSort = deptSort;
    }

    public Long getDeptSort() 
    {
        return deptSort;
    }
    public void setLeader(String leader) 
    {
        this.leader = leader;
    }

    public String getLeader() 
    {
        return leader;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<Doctor> getDoctorList()
    {
        return doctorList;
    }

    public void setDoctorList(List<Doctor> doctorList)
    {
        this.doctorList = doctorList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptName", getDeptName())
            .append("parentId", getParentId())
            .append("deptSort", getDeptSort())
            .append("leader", getLeader())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("doctorList", getDoctorList())
            .toString();
    }
}
